home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / exampleCode / opengl / GLUT / lib / glut / Imakefile < prev    next >
Encoding:
Makefile  |  1996-11-11  |  2.9 KB  |  149 lines

  1.  
  2. /* Copyright (c) Mark J. Kilgard, 1994. */
  3.  
  4. #define DoNormalLib YES
  5.  
  6. #include <Library.tmpl>
  7.  
  8. #include "../../Glut.cf"
  9.  
  10. HDRS = \
  11.     glutint.h \
  12.     glutstroke.h \
  13.     layerutil.h
  14.  
  15. SRCS = \
  16.     glut_8x13.c \
  17.     glut_9x15.c \
  18.     glut_bitmap.c \
  19.     glut_bwidth.c \
  20.     glut_cindex.c \
  21.     glut_cursor.c \
  22.     glut_dials.c \
  23.     glut_event.c \
  24.     glut_ext.c \
  25.     glut_fullscrn.c \
  26.     glut_get.c \
  27.     glut_hel10.c \
  28.     glut_hel12.c \
  29.     glut_hel18.c \
  30.     glut_init.c \
  31.     glut_input.c \
  32.     glut_menu.c \
  33.     glut_modifier.c \
  34.     glut_mroman.c \
  35.     glut_overlay.c \
  36.     glut_roman.c \
  37.     glut_shapes.c \
  38.     glut_space.c \
  39.     glut_stroke.c \
  40.     glut_swidth.c \
  41.     glut_tablet.c \
  42.     glut_teapot.c \
  43.     glut_tr10.c \
  44.     glut_tr24.c \
  45.     glut_util.c \
  46.     glut_win.c \
  47.     glut_winmisc.c \
  48.     layerutil.c
  49.  
  50. OBJS = \
  51.     glut_8x13.o \
  52.     glut_9x15.o \
  53.     glut_bitmap.o \
  54.     glut_bwidth.o \
  55.     glut_cindex.o \
  56.     glut_cursor.o \
  57.     glut_dials.o \
  58.     glut_event.o \
  59.     glut_ext.o \
  60.     glut_fullscrn.o \
  61.     glut_get.o \
  62.     glut_hel10.o \
  63.     glut_hel12.o \
  64.     glut_hel18.o \
  65.     glut_init.o \
  66.     glut_input.o \
  67.     glut_menu.o \
  68.     glut_modifier.o \
  69.     glut_mroman.o \
  70.     glut_overlay.o \
  71.     glut_roman.o \
  72.     glut_shapes.o \
  73.     glut_space.o \
  74.     glut_stroke.o \
  75.     glut_swidth.o \
  76.     glut_tablet.o \
  77.     glut_teapot.o \
  78.     glut_tr10.o \
  79.     glut_tr24.o \
  80.     glut_util.o \
  81.     glut_win.o \
  82.     glut_winmisc.o \
  83.     layerutil.o
  84.  
  85. #ifdef LibraryObjectRule
  86. LibraryObjectRule()
  87. #else
  88. /* XXX Very lame, you must be using pre-R5 config files!  This
  89.    will probably do essentially what LibraryObjectRule does. */
  90. NormalLibraryObjectRule()
  91. #endif
  92.  
  93. NormalLibraryTarget(glut,$(OBJS))
  94.  
  95. /* I've gotten too many complaints from people (mostly Linux users)
  96.    trying to build GLUT that have problems using lex and yacc to
  97.    build the stroke fonts for GLUT so I will simply supply the
  98.    generated C stroke fonts files.  If you would like to build the
  99.    fonts, please uncomment the following define of BuildStrokeFontsWithLex
  100.    and regenerate the Makefile. */
  101.  
  102. /* #define BuildStrokeFontsWithLex */
  103.  
  104. #ifdef BuildStrokeFontsWithLex
  105.  
  106. # for SGI's parallel make
  107. .ORDER : strokegen.h strokegen.c
  108.  
  109. strokegen.h strokegen.c : strokegen.y
  110.     $(YACC) -d strokegen.y
  111.     $(MV) y.tab.c strokegen.c
  112.     $(MV) y.tab.h strokegen.h
  113.  
  114. /* XXX Attempt to make up for the lack of lex support in pre-R6 imake
  115.    config files. */
  116. #ifndef LexCmd
  117. #define LexCmd lex
  118. LEX = LexCmd
  119. #endif
  120. #ifndef LexLib
  121. #define LexLib -ll
  122. LEXLIB = LexLib
  123. #endif
  124.  
  125. strokelex.c : strokelex.l
  126.     $(LEX) strokelex.l
  127.     $(MV) lex.yy.c strokelex.c
  128.  
  129. strokegen : strokegen.o strokelex.o
  130.     $(CC) -o $@ $(CFLAGS) strokegen.o strokelex.o $(LEXLIB)
  131.  
  132. glut_roman.c : Roman.stroke strokegen
  133.     ./strokegen -s glutStrokeRoman < Roman.stroke > $@
  134.  
  135. glut_mroman.c : MonoRoman.stroke strokegen
  136.     ./strokegen -s glutStrokeMonoRoman < MonoRoman.stroke > $@
  137.  
  138. GEN_STROKES = glut_roman.c glut_mroman.c
  139.  
  140. depend:: glut_roman.c glut_mroman.c
  141.  
  142. #endif /* BuildStrokeFontsWithLex */
  143.  
  144. clean::
  145.     $(RM) y.tab.h y.tab.c lex.yy.c gram.h gram.c lex.c
  146.     $(RM) strokelex.c strokegen.c $(GEN_STROKES) strokegen capturexfont
  147.  
  148. DependTarget()
  149.